package com.lu.system.management.domain;

import com.alibaba.fastjson.JSON;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * tree TODO <br>
 * 
 * @author kangxu2 2017-1-7
 * 
 */
public class Tree<T> {
	/**
	 * 节点ID
	 */
	private String id;
	/**
	 * 显示节点文本
	 */
	private String title;
	/**
	 * 节点状态，open closed
	 */
	private Map<String, Object> state;
	/**
	 * 节点属性
	 */
	private Map<String, Object> list2;

	/**
	 * 节点的子节点
	 */
	private List<Tree<T>> list = new ArrayList<Tree<T>>();

	/**
	 * 父ID
	 */
	private String parentId;

	/**
	 *
	 * @return
	 */
	private String 	icon;

	/**
	 * 权限
	 * @return
	 */
	private String quanx;

	private  String jump;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Map<String, Object> getState() {
		return state;
	}

	public void setState(Map<String, Object> state) {
		this.state = state;
	}

	public Map<String, Object> getList2() {
		return list2;
	}

	public void setList2(Map<String, Object> list2) {
		this.list2 = list2;
	}

	public List<Tree<T>> getList() {
		return list;
	}

	public void setList(List<Tree<T>> list) {
		this.list = list;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getQuanx() {
		return quanx;
	}

	public void setQuanx(String quanx) {
		this.quanx = quanx;
	}

	public String getJump() {
		return jump;
	}

	public void setJump(String jump) {
		this.jump = jump;
	}

	public Tree(String id, String title, Map<String, Object> state, Map<String, Object> list2, List<Tree<T>> list, String parentId, String icon, String quanx, String jump) {
		this.id = id;
		this.title = title;
		this.state = state;
		this.list2 = list2;
		this.list = list;
		this.parentId = parentId;
		this.icon = icon;
		this.quanx = quanx;
		this.jump = jump;
	}

	public Tree() {
		super();
	}

	@Override
	public String toString() {

		return JSON.toJSONString(this);
	}

}